/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.service.api;


import com.koron.common.domain.DataBean;
import com.koron.system.domain.DictType;
import org.swan.bean.MessageBean;

import java.util.List;

public interface DictTypeService {
    /**
     * 保存字典类型
     * @param dictType
     * @return
     */
    MessageBean<Integer> saveDictType(DictType dictType);

    /**
     * 批量修改字典类型操作
     * @param dictTypeList
     * @return
     */
    MessageBean<Integer> batchUpateDictType(List<DictType> dictTypeList);

    /**
     * 批量删除字典类型数据
     * @param idList
     * @return
     */
    MessageBean<Integer> batchDeteleDictType(List<String> idList);

    /**
     * 根据主键查询字典类型数据
     * @param id
     * @return
     */
    MessageBean<DictType> queryOneDictType(String id);

    /**
     * 分页查询字典类型列表
     * @param start
     * @param rows
     * @return
     */
    MessageBean<DataBean<DictType>> queryAllDictType(Integer start,Integer rows);

    /**
     * 根据名称模糊获取所以字典类型以及类型下的字典数据
     * @return
     */
    MessageBean<List<DictType>> getDictTypesAndDictDatas(String name);
}
